<!-- 我处理的-外卖详情组件 -->
<template name="mydealdetailCom0">
	<view class="mydealdetailCom mydealdetailCom0">
		<view class="content">
			<view class="list">
				<view class="list_item">
					<view class="item_title">经营日期</view>
					<view class="item_text">{{infoData.shop_date}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">做菜时长</view>
					<view class="item_text">{{infoData.stockup_time}}分钟</view>
				</view>
				<view class="list_item">
					<view class="item_title">接单设置</view>
					<view class="item_text">{{infoData.is_auto_receive}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">经营类型</view>
					<view class="item_text">{{infoData.waimai_tag}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">配送方式</view>
					<view class="item_text">{{infoData.delivery_type}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">起送价</view>
					<view class="item_text">￥{{infoData.start_delivery_price}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">餐盒费</view>
					<view class="item_text">{{infoData.packing_charges_status}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">环境照</view>
					<view class="item_text" @click="merchantPictures()">
						<text>查看</text>
						<image src="../../../static/img/my_back.png"></image>
					</view>
				</view>
			</view>
			<view class="list">
				<view class="list_item">
					<view class="item_title">BD</view>
					<view class="item_text">{{infoData.aid_name}} AID{{infoData.service_code}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">门店地址</view>
					<view class="item_text">{{infoData.address}}</view>
				</view>
				<view class="list_item">
					<view class="item_title">提交时间</view>
					<view class="item_text">{{infoData.apply_time}}</view>
				</view>
			</view>
		</view>
		<view class="btn" v-if="dealtype==0">
			<button type="default" class="btn_reject" @click="audit(-1)">审核拒绝</button>
			<button type="primary" @click="audit(2)">审核通过</button>
		</view>
	</view>
</template>

<script>
	import { verifywaimai } from '../../../api/index.js'
	export default {
		data() {
			return {
				
			}
		},
		props: {
			infoData:'',
			dealtype:''
		},
		methods: {
			merchantPictures:function(){
				if(this.infoData.merchant_pictures.length>0){
					uni.previewImage({
						urls:this.infoData.merchant_pictures
					})
				}
			},
			audit:function(status){
				verifywaimai({
					status:status,
					suid:this.infoData.suid
				}).then((res) => {
					console.log(res)
					uni.showModal({
						title:'提示',
						content: res.msg,
						complete:function(){
							if(res.code == 0){
								uni.navigateBack({
									
								})
							}
						}
					})
				}).catch((e) => {
					console.log(e);
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import './mydealdetailCom.scss';
</style>